<?php
    switch($ad_type_id){
        case 2:
            foreach((array)$info as $k =>$v){
?>

<li>
    <figure>
        <a target="_blank" title="<?php echo $v['title'] ?>" href="<?php echo $v['link'] ?>">
            <img width="75" height="38" src="<?php echo $v['picture'] ?>">
        </a>
    </figure>
</li>
<?php
            }
            break;
        case 5:
?>
<div role="banner" class="span8 hidden-phone">
    <a title="<?php echo $info[0]['title']; ?>" target="_blank" href="<?php echo $info[0]['link']; ?>">
        <img width="670" height="80" src="<?php echo $info[0]['picture']; ?>" alt="<?php echo $info[0]['title']; ?>">
    </a>
</div>
<?php
            break;
        case 6:
        case 7:
        case 8:
?>
<div class="cnt <?php echo in_array($ad_type_id,array(7,6)) ? 'magb10' : 'sep20' ?>">
    <a title="<?php echo $info[0]['title']; ?>" target="_blank" href="<?php echo $info[0]['link']; ?>">
        <img width="280" height="<?php echo in_array($ad_type_id,array(7,8)) ? 280 : 90 ?>" src="<?php echo $info[0]['picture']; ?>" alt="<?php echo $info[0]['title']; ?>">
    </a>
</div>
<?php
            break;
        case 9:
?>
<h6 class="sidebar_title sep10">友情链接</h6>
<ul class="unstyled">
    <?php foreach((array)$info as $k =>$v){ ?>
    <li>
        <a ref="nofollow" target="_blank" href="<?php echo $v['link'] ?>">
            <?php if($v['picture']){ ?>
                <img alt="<?php echo $v['title'] ?>" src="<?php echo $v['picture'] ?>">
            <?php }else{ ?>
                <?php echo $v['title']; ?>
            <?php } ?>
        </a>
    </li>
    <?php } ?>
</ul>
<?php
            break;
        case 10:
?>
<h6 class="sidebar_title sep10">合作伙伴<small>（合作联系:270205071）</small></h6>
<div class="pull-right powered_by">
    <?php foreach((array)$info as $k =>$v){ ?>
    <a href="<?php echo $v['link'] ?>" title="<?php echo $v['title'] ?>" target="_blank" class="pull-right powered_by_grancloud sep15">
        <img alt="<?php echo $v['title'] ?>" src="<?php echo $v['picture'] ?>"  title="<?php echo $v['title'] ?>">
    </a>
    <?php } ?>
</div>
<?php
            break;
    }
?>



